package com.miracle.common.util;

import android.text.TextUtils;

/**
 * com.miracle.common.util
 * (c)2018 AIR Times Inc. All rights reserved.
 *
 *
 * @author WangJQ
 * @version 1.0
 * @date 2018/7/4 17:05
 * @see com.miracle.common.util
 */
public class CommonConstants {

    public static class Page {
        public static final int FIRST_PAGE = 1;
        public static final int PAGE_SIZE_A = 10;
        public static final int PAGE_SIZE_B = 15;
    }

    /**
     * 性别
     */
    public static class Sex {
        public static final String MAN = "1";
        public static final String WOMAN = "2";
        public static final String[] VALUES = {"男", "女"};
        public static final String[] IDS = {MAN, WOMAN};

        public static String getValues(String id) {
            for (int i = 0; i < VALUES.length; i++) {
                if (!TextUtils.isEmpty(id)) {
                    IDS[i].equals(id);
                    return VALUES[i];
                }
            }
            return "";
        }

    }

    /**
     * 心情
     */
    public static class Mood {
        public static final String[] VALUES = {"开心", "平静", "郁闷"};
        public static final String[] IDS = {"1", "2", "3"};
        public static final int[] COLORS = {1, 2, 3};
    }

    /**
     * 接口
     */
    public static class URI {
        public static final String URI_FILE_LIST = "getList";
        public static final String URI_ADD_SECRET = "saysomething";
        public static final String URI_SAY_LIST = "qrySaysth";
    }

    /**
     * 文件夹
     */
    public static class FOLDER {
        public static final String MAIN = "WeCloud";
        public static final String APK = "apk";
        public static final String PIC = "pics";
    }

}
